namespace cnVery.Cms.Kernel
{
    using cnVery.Release;
    using cnVery.Utils;
    using System;
    using System.Configuration;

    public class Property
    {
        public static string AppPrefix
        {
            get
            {
                return System.Configuration.ConfigurationManager.AppSettings["AppPrefix"];
            }
        }

        public static bool IsProgramRegistered
        {
            get
            {
                return new Authorization("CVCMS").IsRegistered;
            }
        }

        public static string Name
        {
            get
            {
                return Config.GetInstant("cnvery.cms.config")["SiteName"];
            }
        }

        public static string Version
        {
            get
            {
                return ("CVCMS " + new System.Version(1, 0, 0) + " Beta");
            }
        }
    }
}

